<?php
// +----------------------------------------------------------------------
// | 百度在线查杀
// +----------------------------------------------------------------------
namespace helper\baidu;

use GuzzleHttp\Exception\GuzzleException;

class Scanner
{
    /**
     * 在线查杀木马
     * @return void
     */
    public function upload($filename)
    {
        $url = "https://scanner.baidu.com/enqueue";
        $data = fopen($filename, 'r');
        $client = new \GuzzleHttp\Client();
        try {
            $res = $client->request('POST', $url, ['body' => $data]);
        } catch (GuzzleException $e) {

        }
    }
}